//
//  GFLikeUserCollectionViewCell.m
//  GoodFood
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 荣伟峰. All rights reserved.
//

#import "GFLikeUserCollectionViewCell.h"

@interface GFLikeUserCollectionViewCell ()

@property (nonatomic, strong) UIImageView *likeUserImage;

@end

@implementation GFLikeUserCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.likeUserImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.likeUserImage];
        
    }
    return self;
}

-(void)setTempDic:(NSDictionary *)tempDic {
    
    if (_tempDic != tempDic) {
        _tempDic = tempDic;
    }
    
    self.likeUserImage.frame = self.contentView.frame;
    [self.likeUserImage setImageWithURL:[NSURL URLWithString:[tempDic objectForKey:@"user_image"]] placeholderImage:[UIImage imageNamed:@"category_1"]];
    
}

@end
